package com.ruoyi.school.question.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 回答管理对象 school_question
 * 
 * @author qiang
 * @date 2022-06-26
 */
public class Question extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据库编号 */
    private Long id;

    /** 状态 */
    @Excel(name = "状态")
    private Long state;

    /** 疑问标题 */
    @Excel(name = "疑问标题")
    private String title;

    /** 疑问内容 */
    @Excel(name = "疑问内容")
    private String description;

    /** 知识点id */
    @Excel(name = "知识点id")
    private Long kId;

    /** 回复提问id */
    @Excel(name = "回复提问id")
    private Long qId;

    /** 上传文件 */
    @Excel(name = "上传文件")
    private String upload;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setkId(Long kId) 
    {
        this.kId = kId;
    }

    public Long getkId() 
    {
        return kId;
    }
    public void setqId(Long qId) 
    {
        this.qId = qId;
    }

    public Long getqId() 
    {
        return qId;
    }
    public void setUpload(String upload) 
    {
        this.upload = upload;
    }

    public String getUpload() 
    {
        return upload;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModified(Date gmtModified) 
    {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() 
    {
        return gmtModified;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("state", getState())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("kId", getkId())
            .append("qId", getqId())
            .append("upload", getUpload())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModified", getGmtModified())
            .append("remark", getRemark())
            .append("userId", getUserId())
            .toString();
    }
}
